package psbc.daily.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import psbc.daily.entity.User;

@Mapper
public interface UserMapper {
    @Insert("insert into user(account,password) values(#{account},#{password})")
    int insertUser(User user);

    @Select("select * from user where account = #{account} and password = #{password}")
    User selectUser(User user);
}
